﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace yule.Common.Log
{
    /// <summary>
    /// 日志等级
    /// </summary>
    public enum Level
    {
        /// <summary>
        /// 调试
        /// </summary>
        Debug = 1,
        /// <summary>
        /// 警告
        /// </summary>
        Warn = 2,
        /// <summary>
        /// 错误
        /// </summary>
        Error = 4,
        /// <summary>
        /// 消息
        /// </summary>
        Message = 8,
    }

    /// <summary>
    /// 日志接口
    /// </summary>
    public interface ILogWrite
    {
        void Write(string message, Level level);
    }

}